Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGet Job, don't rethrow exceptions if blob is not found #10188

Merged
merged 6 commits into from
Sep 24, 2024

Conversation

erdembayar
Copy link
Contributor

@erdembayar erdembayar commented Sep 19, 2024

Fixes: https://github.com/NuGet/Engineering/issues/5628
Context is here on teams.
Deployment: 1550336

Previously there was many exceptions for NuGet.Jobs Catalog2Icon, after deployment it's no more.
Before: image

After:
image

@erdembayar erdembayar changed the title Dev eryondon job notfound exception Don't rethrow exceptions if blob is not found Sep 19, 2024
@erdembayar erdembayar marked this pull request as ready for review September 19, 2024 23:36
@erdembayar erdembayar requested a review from a team as a code owner September 19, 2024 23:36
@erdembayar erdembayar changed the title Don't rethrow exceptions if blob is not found NuGet Job, don't rethrow exceptions if blob is not found Sep 20, 2024
@@ -125,6 +127,10 @@ public async Task DeleteAsync(Uri resourceUri, CancellationToken cancellationTok
{
await OnDeleteAsync(resourceUri, deleteRequestOptions, cancellationToken);
}
catch (RequestFailedException ex) when (ex.ErrorCode == BlobErrorCode.BlobNotFound)
Copy link
Contributor Author

@erdembayar erdembayar Sep 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If necessary I can unit test, let me know

@erdembayar erdembayar merged commit a382525 into dev Sep 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants